package com.xuecheng.media.service;

import com.xuecheng.media.model.po.MediaProcess;

import java.util.List;

/**
 * @author Tang
 * @version 1.0
 * @date 2024/1/4 23:12
 */
public interface MediaProcessService {
    List<MediaProcess> selectListByShardIndex(int shardTotal,
                                              int shardIndex,
                                              int count);
    boolean startTask(long id);

    void updateProcessFinishStatus(long taskId,
                                   String status,
                                   String fileId,
                                   String url,
                                   String errorMsg);
}
